player addweapon "ItemGPS";
list_tents = allMissionObjects "TentStorage";
if (isnil "gay" ) then {gay=0};

if (gay==0) then
{
hint "Adding Tent Markers";
	gay=1;
	unitList_tents = list_tents;
	totalunits_tents = count unitList_tents;
	TentS = true;
	
	while {TentS} do
	{
	qp = 0;
	yo4 = 0;

	for "qp" from 0 to totalunits_tents do
	{
		actualunit_tents = unitList_tents select qp; //Car, Helicopter, Boat
		deleteMarkerLocal ("Tents"+ (str qp));
		yo4 = qp + 1;
		deleteMarkerLocal ("Tents"+ (str yo4));
		mark_tents = "Tents" + (str qp); //Car, Boat, Helicopter
		mark_tents = createMarkerLocal [mark_tents,getPos actualunit_tents];
		mark_tents setMarkerTypeLocal "waypoint";
		mark_tents setMarkerPosLocal (getPos actualunit_tents);
		mark_tents setMarkerColorLocal "ColorGreen";
		//mark_tentssetMarkerTextLocal "Tent";
		};
		sleep 30;
	};
}
else
{
hint "TM Stopping";
	qp = 0;
	TentS = false;
	gay=0;

		for "qp" from 0 to totalunits_tents do
		{
		deleteMarkerLocal ("Tents"+ (str qp));
		yo4 = q + 1;
		deleteMarkerLocal ("Tents"+ (str yo4));
		};
};